//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.liy.framework.common.office.excel;

import com.liy.framework.common.utils.FileUtil;
import java.io.InputStream;
import java.util.Map;

import net.sf.jxls.transformer.XLSTransformer;
import org.apache.poi.ss.usermodel.Workbook;

public class ExportExcel {
    public ExportExcel() {
    }

    public void export(String templatePath, Map data, String destFilePath) throws Exception {
        XLSTransformer transformer = new XLSTransformer();
        FileUtil.createNewFile(destFilePath);
        transformer.transformXLS(templatePath, data, destFilePath);
    }

    public Workbook export(InputStream is, Map data) throws Exception {
        XLSTransformer transformer = new XLSTransformer();
        return transformer.transformXLS(is, data);
    }
}
